Unity Destroy All Children

57

unity destroy all children -

while (transform.childCount > 0) {
    DestroyImmediate(transform.GetChild(0).gameObject);
}

Comments

Submit
0 Comments